import { createRouter,createWebHashHistory } from 'vue-router'

import addtopicView from '@/components/addtopicView.vue'
import announcementmanagementView from '@/components/announcementmanagementView.vue'
import competitionlistView from '@/components/competitionlistView.vue'
import createacontestView from '@/components/createacontestView.vue'
import createacourseView from '@/components/createacourseView.vue'
import curriculumscheduleView from '@/components/curriculumscheduleView.vue'
import importandexportquestionsView from '@/components/importandexportquestionsView.vue'
import judgementserverView from '@/components/judgementserverView.vue'
import listofQuestionsView from '@/components/listofQuestionsView.vue'
import odometerView from '@/components/odometerView.vue'
import studentmanagementView from '@/components/studentmanagementView.vue'
import systemConfigurationView from '@/components/systemConfigurationView.vue'
import teachermanagementView from '@/components/teachermanagementView.vue'

const routes = [
        {
            path:'/',
            component: odometerView
        },
        {
            path:'/addtopic',
            component: addtopicView
        },
        {
            path:'/announcementmanagement',
            component:announcementmanagementView
        },
        {
            path:'/competitionlist',
            component:competitionlistView
        },
        {
            path:'/createacontest',
            component:createacontestView
        },
        {
            path:'/createacourse',
            component:createacourseView
        },
        {
            path:'/curriculumschedule',
            component:curriculumscheduleView
        },
        {
            path:'/importandexportquestions',
            component:importandexportquestionsView
        },
        {
            path:'/judgementserver',
            component:judgementserverView
        },
        {
            path:'/listofQuestions',
            component:listofQuestionsView
        },
        {
            path:'/odometer',
            component:odometerView
        },
        {
            path:'/studentmanagement',
            component:studentmanagementView
        },
        {
            path:'/systemConfiguration',
            component:systemConfigurationView
        },
        {
            path:'/teachermanagement',
            component:teachermanagementView
        },
    ];
    const router = createRouter({
        history: createWebHashHistory(),
        routes
});

export default router